import type Login_Logins from '@/dto/request/login_logins'
import type Response_Dto from '@/dto/response/Api_Result';
import request from '@/utils/request'

/**
 * 用户登录
 */
export const logins = (obj: Login_Logins): Promise<Response_Dto> => {
    return request({
        url: 'api/login/logins',
        method: "post",
        data: obj
    });
}

/**
 * 检查用户是否登录
 */
export const check_login = (): Promise<Response_Dto> => {
    return request({
        url: 'api/login/check_login',
        method: "get"
    });
}